package com.qqtech.qquan.user.enums;
/**
 * 银行类型:1-支付宝;2-银行卡;3-微信
 * @author Administrator
 *
 */
public enum UserWithdrawTypeDictEnum {
	ALIPAY(1), BANK(2), WECHAT(3);
	int code;

	UserWithdrawTypeDictEnum(int code) {
		this.code = code;
	}

	public int getCode() {
		return code;
	}

	public static boolean isInScope(Integer code) {
		if (code == null) {
			return false;
		}
		UserWithdrawTypeDictEnum[] arrEnum = UserWithdrawTypeDictEnum.values();
		for (UserWithdrawTypeDictEnum e : arrEnum) {
			if (e.code == code.intValue()) {
				return true;
			}
		}
		return false;
	}
}
